package gob.cgr.web.sgrh.error;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

public class ExceptionHandlerFactoryCustom extends ExceptionHandlerFactory {

	private javax.faces.context.ExceptionHandlerFactory parent;

    public ExceptionHandlerFactoryCustom(javax.faces.context.ExceptionHandlerFactory parent) {
        this.parent = parent;
    }

    @Override
    public ExceptionHandler getExceptionHandler() {
        ExceptionHandler result = parent.getExceptionHandler();
        result = new CustomExceptionHandler(result);
        return result;
    }
	
}
